@charset "UTF-8";

$asideWith: 180px !default;
$orgTreeWith: 210px !default;
$orgTreePadding: 10px !default;

@for $i from 1 through 10 {
  .height-#{$i*10} { height: 10px * $i; }
}

@import "mixin";
@import "loading";
@import "hint";
@import "form";
@import "tree";
@import "table";

html, body {
  height: 100%;
}

ul, ol {
  margin: 0;
  padding: 0;
}

ul {
  list-style-type: none;
}

button {
  outline: none;
  &:focus {
    outline: none;
  }
}

body {
  background-color: #f8f8f8;
  color: #666;
  font-family: "Helvetica Neue","Luxi Sans","DejaVu Sans",Tahoma,"Hiragino Sans GB",STHeiti,"Microsoft YaHei";
}

.va-m {
  vertical-align: middle;
}

.btn {
  border-radius: 2px;
}

.btn-xs {
  padding: 2px 5px;
}

.pagination-group {
  margin-top: 20px;
  overflow: hidden;
}

.top-wrapper {
  position: fixed;
  width: 100%;
  background-color: #3787dd;
  z-index: 1000;
  .brand {
    float: left;
    width: $asideWith;
    background-color: #1c6ec7;
    height: 50px;
    line-height: 50px;
    .logo {
      display: block;
      color: #fff;
      height: 32px;
      width: 120px;
      margin: 8px 0 0 20px;
      background: url("../images/logo.png") no-repeat 0 0;
      //background-size: cover;
    }
  }
  .head-wrapper {
    position: absolute;
    left: $asideWith;
    right: 0;
    top: 0;
    background-color: #3787DD;
    .head-name {
      float: left;
      color: #c3dbf5;
      font-size: 1.5em;
      height: 50px;
      line-height: 50px;
      strong {
        display: block;
        padding: 0 30px;
        border-right: 1px solid #367cc9;
      }
    }
  }
}

.wrapper-inner {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom:0;
}

.aside-wrapper {
  position: fixed;
  width: $asideWith;
  top: 50px;
  bottom: 0;
  left: 0;
  transition: .3s all ease;
  user-select: none;
}

.main-wrapper {
  position: absolute;
  left: $asideWith;
  right: 0;
  bottom: 0;
  height: 100%;
  transition: .15s all ease;
}

.view-wrapper {
  position: absolute;
  transition: .15s all ease;
  overflow: hidden;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
}

.view-container {
  position: absolute;
  left: $asideWith;
  right:0;
  top:0;
  bottom: 0;
  overflow-y: auto;
  transition: all 0.2s ease;
  > .view-inner {
    padding: 20px;
  }
}

.view-body {
  //background: red;
  overflow: hidden;
  padding: 0 35px 35px;
  @extend %formControl;
}

.view-cont {
  th,td{
    text-align: center
  }
  .fa{
    margin-right: 5px;
  }
  .view-cont-hd {
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    h2 {
      font-size: 20px;
    }
    .btn-back {
      float: left;
      margin-top: 18px;
    }
    .line {
      width: 2px;
      height: 14px;
      margin: 5px 10px 0 0;
      background-color: #367cc9;
    }
    .breadcrumb {
      float: right;
      color: #666;
      background: none;
      margin: 15px 0 0;
      a,span {
        color: #a8a8a8;
      }
      li:last-child {
        > span {
          color: #777;
        }
      }
    }
  }
  .row-pane {
    margin-top: 20px;
  }
}

.view-cont-bd {
  .handle-bar {
    .form-control {
      width: 250px;
    }
    .form-group {
      margin-bottom: 0;
    }
    .hint {
      visibility: hidden;
    }
    .show {
      visibility: visible;
    }
  }
  .breadcrumb {
    margin-top: 10px;
    margin-bottom: -5px;
    background-color: #fff;
  }
}

.sidebar-collapsed {
  .aside-wrapper {
    width: 50px;
  }
  .main-wrapper {
    left: 50px;
  }
}

.sub-menu-collapsed {
  .secondary-wrapper {
    width: 0;
  }
  .view-container {
    left: 0;
  }
}

.system-form-cont {
  @extend %formControl;
  .btn {
    .fa {
      margin-right: 3px;
    }
  }
}

.modal-dialog {

}

.modal-content {
  @extend %formControl;
  .tab-pane {
    padding: 10px  0;
  }
  .table {
    td,
    th {
      text-align: center;
    }
  }
}

.modal-400 {
  width: 400px;
  margin: 80px auto 0;
}

.modal-md {
  margin: 60px auto 0;
}

.empty {
  color: #999;
}

.ellipsis {
  @include ellipsis();
}

.modal-sm {
  margin: 80px auto;
}

.system-user-form {
  .form-group {
    display: block;
    margin-bottom: 15px;
  }
}

.system-admin-cont {
  position: relative;
  .panel-body {
    position: relative;
  }
  .grid-c {
    float: left;
    padding-right: 15px;
    min-height: 500px;
    width: $orgTreeWith;
    border-right: 1px solid #ddd;
  }
  .grid-m {
    margin-left: $orgTreeWith + 15px;
  }
  .org-tree {
    width: $orgTreeWith;
    height: 430px;
    overflow: auto;
  }
  .data-list {
    min-height: 400px;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .role-view {
    .post-list {
      margin-left: 0;
    }
  }
  .list-info {
    .list-item {
      > span {
        padding: 10px 15px;
      }
      > .name {
        display: inline-block;
        width: 29%;
        background: #f5f5f5;
        border-right: 1px solid #ddd;
      }
      > .text {
        display: inline-block;
        width: 70%;
      }
    }
  }
  .btn-xl {
    padding-left: 20px;
    padding-right: 20px;
  }
  .user-info {
    margin-bottom: 15px;
  }
  .list-info {
    position: relative;
    margin-right: -1px;
    float: left;
    width: 50%;
    > .list-item {
      position: relative;
      margin-top: -1px;
      border: 1px solid #ddd;
    }
  }
  .handle-bar {
    .btn {
      padding: 5px 12px;
      border-radius: 0;
    }
  }
  .handle-bar-bg {
    padding: 4px 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    margin-bottom: 0;
    .btn {
      padding: 3px 10px;
      background-color: #fff;
      color: #8b8b8b;
      margin-top: 3px;
      margin-right: 2px;
    }
    .btn-primary {
      border-color: #fff;
    }
  }
  .tab-pane {
    padding: 20px 0;
  }
  .input-group-addon {
    cursor: pointer;
    border-radius: 0;
    padding: 0;
    .addon {
      display: block;
      padding: 8px 12px;
    }
  }
  .list-group-item {
    border: none;
    border-radius: 0;
  }
}

.system-user-create {
  hr {
    margin: 10px 0;
  }
}


.system-user-post {
  .panel-footer {
    text-align: right;
  }
}

.system-password-form {
  .modal-dialog {
    margin: 120px auto;
  }
  .modal-header {
    padding: 15px;
  }
}

.system-menu{
  .row{
    margin-left: 0;
    margin-right: 0;
  }
  .alert-info{
    padding:6px;
    margin-bottom: 0;
  }
  .menu-body-right {
    margin-left: 220px;
    border-left: 1px solid #eee;
    padding-left: 20px;
    min-height: 500px;
  }
  .view-cont-bd{
    .form-control{
      width: 100%;
    }
  }
}

.nav-tabs {
  background: none;
  border-bottom: 1px solid #ddd;
  > li {
    margin-left: -1px;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    > a {
      color: #666;
      border-bottom: 1px solid #ddd;
      background: #FBFAF8;
      border-radius: 0;
      padding: 8px 20px;
      &:hover {
        background: #fff;
        color: #3787DD;
      }
    }
  }
  > li.active {
    border-top: 0;
    > a {
      border-top: 2px solid #3787DD;
      color: #333;
      border-radius: 0;
      background: #fff;
      border-bottom: 1px solid #fff;
      &:hover,
      &:focus {
        border-top: 2px solid #3787DD;
        border-bottom: 1px solid #fff;
      }
    }
  }
}